﻿<%@ Page Title="" Language="C#" MasterPageFile="~/View/Master.Master" AutoEventWireup="true" CodeBehind="Report_DeptConsumption.aspx.cs" Inherits="PresentationLayer.View.Report_DeptConsumption" %>
<%@Register TagPrefix="CR" Namespace="CrystalDecisions.Web" %>
<%@ Register assembly="CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" namespace="CrystalDecisions.Web" tagprefix="CR" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    Department Consumption report:<br />
    Choose a Department:&nbsp;
    <div>
    <asp:DropDownList ID="DropDownList1" runat="server" 
        DataSourceID="SqlDataSource1" DataTextField="DeptName" 
        DataValueField="DeptName">
    </asp:DropDownList>
    </div>
    
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:SSISConnectionString %>" 
        SelectCommand="SELECT [DeptName] FROM [Department]"></asp:SqlDataSource>
    <br />
    <asp:Button ID="Submit" runat="server" Text="Submit" />
    <br />
    <br />
    <CR:CrystalReportViewer ID="CrystalReportViewer1" runat="server" 
        AutoDataBind="true" />
    <br />
</asp:Content>
